﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace TileEditor
{
    public struct Layer
    {
        // This is the map itself
        Tile[,] map;

        public Tile[,] Map
        {
            get { return map; }
            set { map = value; }
        }

        public Layer( int x, int y)
        {
            map = new Tile[x, y];

        }

        public void BlankTemplate(int x, int y)
        {
            map = new Tile[x,y];

            for (int w = 0; w < x; w++)
            {
                for (int h = 0; h < y; h++)
                {
                    map[w, h] = new Tile(w, h, 0, 1, 1, -1);
                }
            }
        }
    }

 
    public struct TriggerGroup
    {
        uint groupNumber;

        public uint Group
        {
            get { return groupNumber; }
            set { groupNumber = value; }
        }

        Entity[] objects;

        public Entity[] Objects
        {
            get { return objects; }
            set { objects = value; }
        }

        Color color;

        public Color Color
        {
            get { return color; }
            set { color = value; }
        }
    }

    public struct TileSet
    {
        String path;

        public String Path
        {
            get { return path; }
            set { path = value; }
        }

        Size setSize;

        public Size SetSize
        {
            get { return setSize; }
            set { setSize = value; }
        }

        int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
    }
}
